import { FormScheme } from '@/pages/form-model/interface';
import { FormFactory } from '@/pages/form-model/model/formFactory';
import { Form } from 'antd';
import SFormItem from './SFormItem';
import React, { useEffect, useImperativeHandle, useState } from 'react';
import { FormModel } from './model/form.model';
import useObservableState from '@/pages/form-model/observeState';
import { useForm } from 'antd/lib/form/Form';

export default function SFormTest(props: any) {
  const { formModel } = props;
  const [formProps] = useObservableState(formModel.$FormProps);
  console.log(456);

  return (
    <Form {...formProps}>
      <SFormItem formProperty={formModel} />
    </Form>
  );
}
